# cmake needs this line
cmake_minimum_required(VERSION 3.1)

# Define project name
project(01_V4L2)

# Find OpenCV, you may need to set OpenCV_DIR variable
# to the absolute path to the directory containing OpenCVConfig.cmake file
# via the command line or GUI
find_package(OpenCV REQUIRED)

# Enable C++11
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)

# Declare the executable target built from your sources
add_executable(myv4l2dymatic myv4l2dymatic.cpp)

# Link your application with OpenCV libraries
target_link_libraries(myv4l2dymatic PRIVATE ${OpenCV_LIBS})
